<?php

/**
 * Description of Registrasi
 *
 * @author DENY PRASETIA TW
 * http://denyprasetiatw.blogspot.com/
 * Created Feb 10, 2012 - 9:49:38 AM
 */

if($this->session->userdata('s_hakakses') != "1"){
    redirect();
} else if($this->session->userdata('s_hakakses') == NULL){
    redirect();
}

$hakakses = array(
    1 => 'Tata Usaha', 
    2 => 'Kepala Balai',
    3 => 'Unit Kerja'
);

?>

<div align="center">
    <h1>Registrasi Pegawai</h1>
    <?php echo form_open('Site/validasiRegistrasiPegawai'); ?>
    <table width="200" border="0" cellpadding="5">
      <tr>
        <td width="96"></td>
        <td width="8"></td>
        <td width="80"></td>
      </tr>
      <tr>
        <td>IDPEGAWAI</td>
        <td>:</td>
        <td><?php echo form_input('i_idpegawai').form_error('i_idpegawai'); ?></td>
      </tr>
      <tr>
        <td>NAMAPEGAWAI</td>
        <td>:</td>
        <td><?php echo form_input('i_namapegawai').form_error('i_namapegawai'); ?></td>
      </tr>
      <tr>
        <td>PASSWORD</td>
        <td>:</td>
        <td><?php echo form_input('i_password').form_error('i_password'); ?></td>
      </tr>
      <tr>
        <td>HAKAKSES</td>
        <td>:</td>
        <td>
            <?php echo form_dropdown('i_hakakses', $hakakses); ?>
        </td>
      </tr>
      <tr>
        <td></td>
        <td></td>
        <td><?php echo form_submit('i_registrasi', ' Save '); ?></td>
      </tr>
      <tr>
          <td></td>
          <td></td>
          <td></td>
      </tr>
    </table>
    <?php echo form_close(); ?>
</div>